package com.cmc.cloud.cmclink.doc.api.document.req.so.sovo.socontactvo;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 订舱联系人信息分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 订舱联系人信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SoContactPageReqVO extends PageParam {

    @Schema(description = "外键", example = "29008")
    private Long soId;

    @Schema(description = "联系人类型 发货人 收货人", example = "1")
    private String contactType;

    @Schema(description = "联系人名")
    private String contactPerson;

    @Schema(description = "联系人电话")
    private String contactTelephone;

    @Schema(description = "联系人邮箱")
    private String contactEmail;

    @Schema(description = "联系人地址")
    private String contactAddress;

    @Schema(description = "联系人传真")
    private String contactFax;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
